﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyCaChieu.aspx.cs" Inherits="LotteCinema.Admin.QuanLyCaChieu" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style29
        {
            width: 216px;
            text-align: right;
        }
        .style30
        {
            font-size: x-large;
        }
        .style31
        {
            text-align: left;
        }
        .style32
        {
            width: 215px;
        }
        .style34
        {
            width: 338px;
        }
        .style35
        {
            width: 338px;
            text-align: center;
        }
        .style36
        {
            width: 215px;
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title" style="font-size:14pt;">QUẢN LÝ CA CHIẾU</div>
    <table style="width:100%;">
        <tr>
            <td>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style26" colspan="3" align="center">
                <asp:Label ID="lblThongBao" runat="server" ForeColor="Red" CssClass="style30"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%; margin-left:270px;">
        <tr>
            <td class="style29">
                <strong>
                <asp:Label ID="Label1" runat="server" Text="Mã Ca Chiếu: " Font-Bold="false" Font-Size="12pt" ></asp:Label>&nbsp&nbsp&nbsp
                </strong>
            </td>
            <td class="style31">
                <asp:DropDownList ID="DDLMacc" runat="server" Height="18px" Width="196px" 
                    AutoPostBack="True" onselectedindexchanged="DDLMacc_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style29">
                <strong>
                <asp:Label ID="Label2" runat="server" Text="TG Bắt Đầu:" Font-Size="12pt" Font-Bold="false"></asp:Label>&nbsp&nbsp&nbsp&nbsp
                </strong>
            </td>
            <td>
                <asp:TextBox ID="txtTGBD" runat="server" Width="100px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style29">
                <strong>
                <asp:Label ID="Label3" runat="server" Text="TG Kết Thúc:" Font-Size="12pt" Font-Bold="false"></asp:Label>&nbsp&nbsp&nbsp&nbsp
                </strong>
            </td>
            <td>
                <asp:TextBox ID="txtTGKT" runat="server" Width="100px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%; margin-left:150px;">
        <tr>
            <td class="style32">
                &nbsp;</td>
            <td class="style34">
                <div class="style26">
                    <asp:GridView ID="grCaChieu" runat="server" AutoGenerateColumns="False" 
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" 
                        CellPadding="3" CellSpacing="1" DataKeyNames="MACC" GridLines="None" Height="175px" 
                        Width="346px" AllowPaging="True" AllowSorting="True" 
                        onselectedindexchanged="grCaChieu_SelectedIndexChanged" TabIndex="-1" 
                        onpageindexchanging="grCaChieu_PageIndexChanging">
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                            <asp:BoundField DataField="MACC" HeaderText="MACC" ReadOnly="True" 
                                SortExpression="MACC" />
                            <asp:BoundField DataField="THOIGIANBD" HeaderText="THOIGIANBD" 
                                SortExpression="THOIGIANBD" />
                            <asp:BoundField DataField="THOIGIANKT" HeaderText="THOIGIANKT" 
                                SortExpression="THOIGIANKT" />
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="#E7E7FF" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#594B9C" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#33276A" />
                    </asp:GridView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="Data Source=ADMIN-PC\SQLEXPRESS;Initial Catalog=QuanLyRapPhim1;Integrated Security=True" 
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="SELECT [MACC], [THOIGIANBD], [THOIGIANKT] FROM [CACHIEU]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style36">
                &nbsp;</td>
            <td class="style35">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style36">
                &nbsp;</td>
            <td class="style35">
                <asp:ImageButton ID="imThem" runat="server" Height="52px" 
                    ImageUrl="~/Images/THEM.png" Width="110px" onclick="imThem_Click" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" Width="110px" onclick="imXoa_Click" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" Width="110px" onclick="ImageButton3_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
    </asp:Content>
